package com.example.model;

/**
 *  webApi标准返回结构
 * @param <T>
 */
public class WebApiResponse<T> {
    public static  final int SUCCESS_CODE=0;
    public static  final int ERROR_CODE=0;

    private int code;
    private String error;
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
